<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
    	*{
    	    margin: 0;
    	    padding: 0;
    	}
    	body{
    	    text-align: center; 
    	}
    	.header{
    	    width: 300px;
    	    height: 400px;
    	    color: white;
    	    background-color: dimgrey;
    	}
    	.p1{
    	    font-size: 16px;
    	}
    	.p2{
    	    font-size: 24px;
    	    margin-top: 50px;
    	}
    	.p3{
    	    font-size: 18px;
    	    margin-top: 20px;
    	    margin-right: -40%;
    	}
    	.footer{
    	
    	    width: 300px;
    	    height: 200px;
    	    background-color: gainsboro;
    	}
    	.p4{
    	    font-size: 16px;
    	    font-weight: bold;
    	    line-height: 180px;
    	}
    </style>
</head>
<body>
    <div class="div">
        <div class="header">
            <p class="p1">生活总是充满了乐趣</p>
            <p class="p2">聊聊我的大学室友</p>
            <p class="p3">@张三 著</p>
        </div>
        <div class="footer">
            <p class="p4">那些回忆，那些事。。。</p>
        </div>
    </div>
</body>
</html>